<%@ taglib prefix="fm" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2023/10/25
  Time: 14:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        .cl{
            color: red;
        }

    </style>
</head>
<body>
<%--<span id="xxx"></span>--%>
<%--<input >--%>

<h1>jsr303新增</h1>
<fm:form modelAttribute="entry"  action="${pageContext.request.contextPath}/addjs" method="post">
    <fm:errors cssClass="cl"  path="title"/><br/>
    标题:<fm:input path="title"/><br/>
    <fm:errors cssClass="cl" path="categoryId"/><br/>
    分类id:<fm:input path="categoryId"/><br/>
    <input type="submit" value="添加">
</fm:form>

</body>
</html>
